﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleTaskManager.WebUI.Infrastructure.Abstract
{
    /// <summary>
    /// Interface of an authentication provider
    /// </summary>
    public interface IAuthProvider
    {
        /// <summary>
        /// Authenticates the user with the given username and password.
        /// </summary>
        /// <param name="username">Username of the user</param>
        /// <param name="password">Password for the given username</param>
        /// <returns>Indicates whether the login informations are valid</returns>
        bool Authenticate(string username, string password);
    }
}
